-- GENERATED SPELL FOR [Forgotten Footman] --


function spell0_27229(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(32587,pUnit)
pUnit:RegisterEvent('Sorts_27229', 5309, 1)
end

function Sorts_27229(pUnit, Event)
local choix_sorts_27229 = math.random(0, 0)
if choix_sorts_27229 == 0 then
pUnit:RegisterEvent('spell0_27229', 1, 1)
end
end

function mob27229_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27229', math.random(1500, 3000), 1)
end

function mob27229_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27229_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27229_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27229, 1, 'mob27229_Action')
RegisterUnitEvent(27229, 2, 'mob27229_Leave')
RegisterUnitEvent(27229, 3, 'mob27229_Kill')
RegisterUnitEvent(27229, 4, 'mob27229_Die')
